package com.ruoyi.video.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 观看进度对象 video_progress
 *
 * @author ruoyi
 * @date 2022-02-08
 */
public class VideoProgress extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;

    /**
     * 视频id
     */
    @Excel(name = "视频id")
    private String videoId;

    /**
     * 观看进度0未看1在看2看完了
     */
    @Excel(name = "观看进度0未看1在看2看完了")
    private Long progress;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setVideoId(String videoId) {
        this.videoId = videoId;
    }

    public String getVideoId() {
        return videoId;
    }

    public void setProgress(Long progress) {
        this.progress = progress;
    }

    public Long getProgress() {
        return progress;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("videoId", getVideoId())
                .append("progress", getProgress())
                .toString();
    }
}
